﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FDStudio.Core.Common.Constants
{
    /*
     CreatedOn: 2018-07-10
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// 结果码
    /// </summary>
    public static class ResultCode
    {
        /// <summary>
        /// 请求成功码
        /// </summary>
        public const int Success = 1000;

        /// <summary>
        /// 一般失败码
        /// </summary>
        public const int Falure = -1;

        /// <summary>
        /// 内部异常
        /// </summary>
        public const int InnerException = 100;

        /// <summary>
        /// 不合法
        /// </summary>
        public const int NotValid = 200;

        /// <summary>
        /// 不合法
        /// </summary>
        public const int NotExists = 201;

        /// <summary>
        /// 数据已存在
        /// </summary>
        public const int AlReadyExists = 300;

        /// <summary>
        /// 禁止访问
        /// </summary>
        public const int ForbiddenAccess = 400;

        /// <summary>
        /// 用户不存在
        /// </summary>
        public const int UserNotExists = 1001;

        /// <summary>
        /// 会话不存在
        /// </summary>
        public const int SessionNotExists = 1002;


    }
}
